<div id="myslidemenu" class="jqueryslidemenu headerbar">
    <ul class="mainnav headerbarsection">
        <li id="lslogo"><a href="<?=base_url()?>"><span>LogicSolution.com</span></a></li>              
        <li class="submenu"><a href="<?=base_url()?>anketa/uredi_anketu/list_polls">Kotrolna tabla</a>             
            <ul>
                <li class="dashboardlink"><a href="<?=base_url()?>anketa/uredi_anketu/list_polls">Sve ankete</a></li>
                <li class="newlink"><a href="<?=base_url()?>anketa/uredi_anketu">Kreirajte novu anketu</a></li>
            </ul>
        </li>
        <?  // MENI ZA KREIRANJE NALOGA
            if($this->session->userdata('user')=='bojanida@hotmail.com'){?>
            <li class="submenu"><a href="<?=base_url()?>nalog/nalog/lista_naloga">Nalog</a>
                <ul>
                    <li class="dashboardlink"><a href="<?=base_url()?>nalog/nalog/lista_naloga">Svi nalozi</a></li>
                    <li class="newlink"><a href="<?=base_url()?>nalog/nalog">Kreirajte novi nalog</a></li>
                </ul>
            </li>   
            <?}
        ?>
    </ul>
    <ul class="secondarynav headerbarsection">   
        <li class="nodiv">
            Dobrodošli <b><?=$this->session->userdata('firstname').' '.$this->session->userdata('lastname');?></b>, 
            <a href="<?=base_url()?>login/logout">odjavite se</a>
        </li>              
        <? 
            $ac_type = $this->session->userdata('acounttype_id');
            $ac_name = "";
            switch ($ac_type){
                case 1:     $ac_name = "Free";                              break;     
                case 2:     $ac_name = "Business Friendly";                 break;     
                case 3:     $ac_name = "Pro Business";                      break;     
                case 4:     $ac_name = "Pro Business Plus";                 break;     
            }
        ?>                           
        <li id="accountlevel">
            <div class="accountlevel10">
                <span>Vaš nalog je: <?=$ac_name;?> </span>
            </div>
        </li> 
    </ul>
    <p class="clear"></p>
</div>
